<?php

namespace app\controller;

use app\service\UserService;
use support\Request;
use support\Response;

class UserController
{

    /**
     * @var
     */
    private $userService;

    public function __construct()
    {
        $this->userService = UserService::getInstance();
    }

    /**
     * 获取项目角色用户ids
     * @param Request $request
     * @return Response
     */
    public function getProjectMemberRoleUserIds(Request $request): Response
    {
        $param = $request->post();
        $res = $this->userService->getProjectMemberRoleUserIds($param['project_id'], $param['role_code']);
        return json(success_response('', $res));
    }


}
